<div class="content-wrapper pre-scrollable">
    
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h3 class="m-0 text-dark">
                        <i class="fa fa-{$contentHeader.icon}"></i>
                        {$contentHeader.title}
                    </h3>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="/admin">首页</a></li>
                        <li class="breadcrumb-item active">{$contentHeader.title}</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    
    
    <div class="content">
        <section class="content">
            <div class="card">
                <div class="card-header">
                    <a href="javascript:;" class="btn btn-primary btn-sm btn-refresh" title="刷新">
                        刷新
                        <i class="fa fa-refresh"></i>
                    </a>
                    <a href="{$Request.root}/{$Request.controller}/{$Request.action}" class="btn btn-primary btn-sm" title="重置">
                        重置搜索
                        <i class="fa fa-repeat"></i>
                    </a>
                    <div class="card-tools">
                        <form>
                            <div class="input-group input-group-sm">
                                <input type="text" class="form-control mr-2" name="search_time" value="123213123" placeholder="请输入时间" id="reservation">
                                <input type="text" name="keywords" class="form-control float-right" placeholder="请输入关键字">
                                <div class="input-group-append">
                                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="card-body">
                    <div class="row">
                        <table class="table table-bordered">
                            <thead>
                                <tr>
                                    <th width="10">ID</th>
                                    <th width="10">订单ID</th>
                                    <th width="10">用户昵称</th>
                                    <th width="10">价格</th>
                                    <th width="10">支付状态</th>
                                    <th width="10">订单类型</th>
                                    <th width="10">商品名称</th>
                                    <th width="10">商品图片</th>
                                    <th width="10">创建时间</th>
                                    <th width="100">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {volist name="orderlist" id="vo"}
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td> <strong>{$vo.order_no}</strong></td>
                                    <td>{$vo.nickname}</td>
                                    <td><strong>{$vo.amount_total}</strong></td>
                                    <td>{$vo.order_status == 1? '已完成':'未完成'}</td>
                                    <td>{$vo.order_type == 1? '课程':'会员'}</td>
                                    <td>{$vo.title}</td>
                                    <td><img src="{$vo.image_url ? getUrlPath($vo.image_url) :'__STATIC__/img/paybg.png'}" width="35" height="35">
                                    </td>
                                    <td>{$vo.create_time}</td>
                                    <td>
                                        {:checkAuth('edit',$vo.id)}
                                        {:checkAuth('delete',$vo.id)}
                                    </td>
                                </tr>
                                {/volist}
                            </tbody>
                        </table>
                    </div>
                </div>
                
                <div class="card-footer clearfix">
                    {$page|raw}
                </div>
            </div>
        </section>
    </div>
</div>
<script src="__STATIC__/js/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
    $('.pagination').addClass("pagination-sm m-0 float-right");
    $('.pagination li').addClass("page-item");
    $('.pagination li span').addClass("page-link");
    $('.pagination li a').addClass("page-link");
})
</script>